﻿using System;
using System.IO;

namespace RxjhServer
{
	public class logo
	{
		public static void FileTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\错误日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void WGTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\外挂日志_" + DateTime.Now.ToString("yyyy_MM") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void ffWGTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\非法外挂日志_" + DateTime.Now.ToString("yyyy_MM") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void JSTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("加速检查"))
				{
					Directory.CreateDirectory("加速检查");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("加速检查\\日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						ErrTxt,
						" ",
						DateTime.Now,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void KickTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("踢号\\日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						ErrTxt,
						" ",
						DateTime.Now,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 交易Log(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\物品交易日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 物品使用Log(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\物品使用日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 获奖人数Log(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("聊天记录"))
				{
					Directory.CreateDirectory("聊天记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("聊天记录\\获奖人数记录_" + DateTime.Now.ToString("yyyy") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 说话Log(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("聊天记录"))
				{
					Directory.CreateDirectory("聊天记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("聊天记录\\说话日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 传音Log(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("聊天记录"))
				{
					Directory.CreateDirectory("聊天记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("聊天记录\\传音记录_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 帮派Log(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("聊天记录"))
				{
					Directory.CreateDirectory("聊天记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("聊天记录\\帮派记录_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void pzTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\帮战日志_" + DateTime.Now.ToString("yyyy_MM") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void cfzTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\非法物品日志_" + DateTime.Now.ToString("yyyy_MM") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void 寄售记录(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\寄售日志_" + DateTime.Now.ToString("yyyy_MM") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void GiftTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\礼包发放日志_" + DateTime.Now.ToString("yyyy_MM") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FileCQTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\CQLog_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FileLoninTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\登陆日志_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FileDropItmeTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\暴物品日志" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FileReMakeTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\再造石头日志" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FileItmeTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\放物品交易记录_" + DateTime.Now.ToString("yyyy_MM_dd") + ".log", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FileBugTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\BugLog_" + DateTime.Now.ToString("yyyy_MM_dd") + ".txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void FilePakTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\封包_" + DateTime.Now.ToString("yyyy_MM_dd") + ".txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void SeveTxtLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("logs"))
				{
					Directory.CreateDirectory("logs");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("logs\\存档_" + DateTime.Now.ToString("yyyy_MM_dd") + ".txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void SeveQianghuaLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\强化" + DateTime.Now.ToString("yyyy_MM") + "log.txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void SeveJinFuLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("物品记录"))
				{
					Directory.CreateDirectory("物品记录");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("物品记录\\金符使用" + DateTime.Now.ToString("yyyy_MM") + "log.txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void SeveReNameLog(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("换名符使用"))
				{
					Directory.CreateDirectory("换名符使用");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("换名符使用\\换名符使用log.txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

		public static void Logout(string ErrTxt)
		{
			try
			{
				if (!Directory.Exists("Logout"))
				{
					Directory.CreateDirectory("Logout");
				}
				using (StreamWriter streamWriter = new StreamWriter(new FileStream("Logout\\Logout.txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
				{
					streamWriter.Write(string.Concat(new object[]
					{
						DateTime.Now,
						" ",
						ErrTxt,
						"\r\n"
					}));
				}
			}
			catch
			{
			}
		}

        public static void qjfuzhi(string ErrTxt)
        {
            try
            {
                if (!Directory.Exists("全局复制"))
                {
                    Directory.CreateDirectory("全局复制");
                }
                using (StreamWriter streamWriter = new StreamWriter(new FileStream("全局复制\\复制记录.txt", FileMode.Append, FileAccess.Write, FileShare.Read)))
                {
                    streamWriter.Write(string.Concat(new object[]
                    {
                        DateTime.Now,
                        " ",
                        ErrTxt,
                        "\r\n"
                    }));
                }
            }
            catch
            {
            }
        }
    }
}
